<?php
/*
 * Author:YangBo Created on 2009-2-10 ����04:35:18
 * 
 * as9
 * TODO:TODO
 * 
 * package_declaration
 * package_name
 * 
 */
 class ServiceUtil
 {
 	public function ServiceUtil()
 	{
 		
 	}
 	
 	public static function getSuccessResult($info,$detail)
 	{
 		if($info)
 		{
 			return array("info"=>"$info","detail"=>"$detail");
 		}
 		return "success";
 	}
 	
 	public static function getFailureResult($info,$detail)
 	{
 		if($info)
 		{
 			return array("info"=>"$info","detail"=>"$detail");
 		}
 		return "failure";
 	}
 	
 	public static function getErrorResult($info,$detail,$errorID)
 	{
 		return array("info"=>"$info","detail"=>"$detail","errorID"=>"$errorID");
 	}
 }
?>
